package com.ctshk.rpc.user.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 *  保存个人资料实体类
 * </p>
 *
 * @author 李新科
 * @date 2021/4/21 19:58
 */
@Data
@ApiModel
public class SaveUserInfoReq implements Serializable {

    @NotBlank(message = "請輸入英文姓")
    @ApiModelProperty(name = "enSurname", value = "英文姓", required = true)
    private String enSurname;

    @NotBlank(message = "請輸入英文名")
    @ApiModelProperty(name = "enName", value = "英文名", required = true)
    private String enName;

    @ApiModelProperty(value="称谓")
    private Integer appellation;

    @ApiModelProperty(value="出生日期")
    @NotNull(message = "请选择出生日期")
    private LocalDate birthday;

    @ApiModelProperty(value="用戶Id")
    private Long userId;

}
